package com.css.dzj.dzjap.modules.lawenforcesuper.service;

import com.css.dzj.dzjap.common.util.R;
import com.css.dzj.dzjap.modules.lawenforcesuper.entity.GeneralExtractRelationEntity;
import com.css.dzj.dzjap.modules.lawenforcesuper.entity.GeneralWorkInfoEntity;
import com.css.dzj.dzjap.modules.lawenforcesuper.view.GeneralExtractVo;
import com.css.dzj.dzjap.modules.lawenforcesuper.view.GeneralVo;
import com.css.dzj.dzjap.modules.project.generecord.entity.Generecord;
import com.css.dzj.dzjap.modules.publick.entity.ApPublicEntity;
import com.querydsl.core.QueryResults;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface GeneralService {

    R saveGeneral(GeneralVo generalVo, HttpServletRequest request);
    QueryResults<GeneralWorkInfoEntity> getpage(Pageable pageable, String title, HttpServletRequest request);

    /**
     * 查询关联表信息
     * @param taskId
     * @param pageable
     * @return
     */
    QueryResults<GeneralExtractRelationEntity> queryRelationById(String taskId, Pageable pageable);

    /***
     * 查询抽取的项目
     * @param taskId
     * @param pageRequest
     * @return
     */
    QueryResults<GeneralExtractVo> queryById(String taskId, Pageable pageRequest);

    void updExtractLawerRelation(String taskId,String recdId);
   List<GeneralWorkInfoEntity> findByTaskId(String taskId);
    void addPulic(ApPublicEntity apPublicEntity, HttpServletRequest request);
}
